package com.book.service.impl;

import com.book.pojo.ChapterContent;
import com.book.mapper.ChapterContentDao;
import com.book.service.ChapterContentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
<<<<<<< HEAD
 * @author cxy
 * @since 2023-10-11 23:22:20
=======
 * @author cc
 * @since 2023-10-11 22:04:59
>>>>>>> a45ef284ff029011b55ef4d830c2b996023ef30c
 */
@Service
public class ChapterContentServiceImpl extends ServiceImpl<ChapterContentDao, ChapterContent> implements ChapterContentService {

    @Autowired
    private ChapterContentDao chapterContentDao;
    @Override
    public void addContent(ChapterContent chapterContent) {
        chapterContentDao.insert(chapterContent);
    }

    @Override
    public void chapterContentNumber(Long id) {
        chapterContentDao.chapterContentNumber(id);
    }

    @Override
    public void updateChapterContent(ChapterContent chapterContent) {
        chapterContentDao.updateById(chapterContent);
    }


}
